package com.example.administrator.myjdlc.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.widget.SwipeRefreshLayout;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.example.administrator.myjdlc.R;
import com.example.administrator.myjdlc.base.BaseActivity;
import com.example.administrator.myjdlc.bean.ProductItem;
import com.example.administrator.myjdlc.net.NetService;
import com.example.administrator.myjdlc.ui.ProgressUi;

import butterknife.Bind;
import butterknife.ButterKnife;


/**
 * @author hzm
 * @Desc 产品详情页
 * @Copr 北京晶朝科技有限公司 版权所有(c) 2016
 * @data 2016-6-16
 * @Modify null
 */
public class ProductDetailActivity extends BaseActivity {
    @Bind(R.id.iv_back)
    ImageView ivBack;
    @Bind(R.id.tv_cancel)
    TextView tvCancel;
    @Bind(R.id.tv_title)
    TextView tvTitle;
    @Bind(R.id.tv_right)
    TextView tvRight;
    @Bind(R.id.iv_title_right)
    ImageView ivTitleRight;
    @Bind(R.id.tv_title_right)
    TextView tvTitleRight;
    @Bind(R.id.rlyt_title)
    RelativeLayout rlytTitle;
    @Bind(R.id.tv_product_name)
    TextView tvProductName;
    @Bind(R.id.tv_detail_trans_number)
    TextView tvDetailTransNumber;
    @Bind(R.id.tv_detail_buy_status)
    TextView tvDetailBuyStatus;
    @Bind(R.id.tv_detail_date)
    TextView tvDetailDate;
    @Bind(R.id.tv_detail_profit_number)
    TextView tvDetailProfitNumber;
    @Bind(R.id.tv_detail_rate)
    TextView tvDetailRate;
    @Bind(R.id.v_left_line)
    View vLeftLine;
    @Bind(R.id.ll_detail_profit)
    LinearLayout llDetailProfit;
    @Bind(R.id.iv_one_line)
    ImageView ivOneLine;
    @Bind(R.id.rl_profit)
    RelativeLayout rlProfit;
    @Bind(R.id.tv_detail_rate_number)
    TextView tvDetailRateNumber;
    @Bind(R.id.tv_detail_profit)
    TextView tvDetailProfit;
    @Bind(R.id.v_right_line)
    View vRightLine;
    @Bind(R.id.ll_detail_rate)
    LinearLayout llDetailRate;
    @Bind(R.id.iv_two_line)
    ImageView ivTwoLine;
    @Bind(R.id.rl_rate)
    RelativeLayout rlRate;
    @Bind(R.id.ll_productdetail_white)
    LinearLayout llProductdetailWhite;
    @Bind(R.id.rb_detail_onemonth)
    RadioButton rbDetailOnemonth;
    @Bind(R.id.rb_detail_threemonth)
    RadioButton rbDetailThreemonth;
    @Bind(R.id.rb_detail_year)
    RadioButton rbDetailYear;
    @Bind(R.id.rg_detail)
    RadioGroup rgDetail;
    @Bind(R.id.ll_huadong)
    LinearLayout llHuadong;
    @Bind(R.id.tv_detail_more)
    TextView tvDetailMore;
    @Bind(R.id.ll_more)
    LinearLayout llMore;
    @Bind(R.id.prsv_product_detail)
    SwipeRefreshLayout prsvProductDetail;
    @Bind(R.id.bt_detail_buy)
    Button btDetailBuy;
    @Bind(R.id.ll_content)
    LinearLayout llContent;
    private ProductItem productItem;
    private String payLimit;
    private NetService netService;
    private ProgressUi progressDialog;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_product_detail);
        ButterKnife.bind(this);
        if (savedInstanceState != null) {
//			mWeiboShareAPI.handleWeiboResponse(getIntent(), this);
        }

//		StatusBarCompat.compat(this);

        initBaseData();
        initView();
        initData();
        initListener();
    }

    @Override
    public void initBaseData() {
        netService = NetService.getInstance();
        progressDialog = new ProgressUi();
        productItem = (ProductItem) getIntent().getSerializableExtra("product");
        payLimit = getIntent().getStringExtra("pay_limit");
    }

    @Override
    public void initView() {


    }

    @Override
    public void initData() {

    }

    @Override
    public void initListener() {

    }
}